<?php
class retrieve_embedscript_admin extends retrieve_base{

	private $module_display_options 	= array(
		array("EMBEDSCRIPT_DISPLAY",	"LOCALE_DISPLAY_EMBEDSCRIPT")
	);
	
	/**
	* function produces abstract structure of modules db structure
	*
    * used to generate the table structure required abstract function that passes an abstract
	* representation of the desired table structure to the proper database module which will
	* interpet the abstract and convert it into a valid SQL Create table structure.
	*
	* @return Array list of abstract table definitions for this module
	*/
	function create_table(){
		$tables = array();
		/**
		* Table structure for table ''
		*/
		$fields = array(
			array("es_identifier"		,"unsigned integer"			,"NOT NULL"	,"auto_increment","key"),
			array("es_client"			,"unsigned integer"			,"NOT NULL"	,"default '0'","key"),
			array("es_label"			,"varchar(255)"				,"NOT NULL"	,"default ''"),
			array("es_date_created"		,"datetime"					,"NOT NULL"	,"default '0000-00-00 00:00:00'"),
			array("es_status"			,"unsigned integer"			,"NOT NULL"	,"default '0'"),
			array("es_menu"				,"unsigned integer"			,"NOT NULL"	,"default '0'"),
			array("es_base_uri"			,"text"						,"NOT NULL"	,"default ''"),
			array("es_cache"			,"unsigned integer"			,"NOT NULL"	,"default ''"),
			array("es_auto_clean"		,"unsigned small integer"	,"NOT NULL"	,"default ''"),
			array("es_last_cached"		,"unsigned integer"			,"NOT NULL"	,"default '0'")
		);
		$primary ="es_identifier";
		$tables[count($tables)] = array("embedscript_list", $fields, $primary);

		return $tables;
	}

}
?>